﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Entity;
using FluentNHibernate.Mapping;


namespace PropertyManagement.Domain.Mapping.FluentHibernate
{
    public class CarParkDetailsMap : ClassMap<CarParkDetails>
    {
        public CarParkDetailsMap()
        {
            Table("CarParkDetails");
            Id(x => x.ID).Column("ID").GeneratedBy.Identity();
            References(x => x.JobBooking).Column("JobBookingID").Cascade.All();
            Map(x => x.CarParkPlace).Column("CarParkPlace");
            Map(x => x.WaitingTime).Column("WaitingTime");    
        }
    }
}
